
const log=console.log;







async function logger(ctx,next){//m-logger
   const start=Date.now();
   //let cost=await  next();
   next();
   const end=Date.now();
log(`${ctx.method} ${ctx.path}  ${end-start}ms `);

  
}

module.exports=logger;



